package video.com.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import video.com.entity.Video;
import video.com.transportEntity.vo.Page;
import video.com.transportEntity.vo.VideoListPage;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xwj
 * @since 2023-11-11
 */
public interface VideoMapper extends BaseMapper<Video> {
    Map<String, Object> getVideoInfo(@Param("videoId") String videoId);
    List<Map<String, Object>> getVideoListByIds(@Param("ids") List<Long> ids);
    List<Map<String, Object>> getTopNVideoList(@Param("page") VideoListPage page, @Param("num") int num);

    void updateVideoInfo(@Param("vo") Map<String, Object> vo);
}
